# from extensions.db.mysql import engine
# from extensions.db.model import Base
# from sqlalchemy.orm import mapped_column, Mapped
# import sqlalchemy
# import datetime
# from sqlalchemy.orm import relationship
# from ..model import User, UserRole


# class RolePower(Base):
#     __tablename__ = "role_power"
#     id: Mapped[int] = mapped_column(primary_key=True)
#     role_id: Mapped[int] = mapped_column(
#         sqlalchemy.ForeignKey("role.id"), comment="角色id")
#     power_id: Mapped[int] = mapped_column(
#         sqlalchemy.ForeignKey("power.id"), comment="权限id")


# class Role(Base):
#     __tablename__ = "role"
#     id: Mapped[int] = mapped_column(primary_key=True)
#     name: Mapped[str] = mapped_column(sqlalchemy.String(255), comment="名字")
#     create_data: Mapped[datetime.datetime] = mapped_column(
#         server_default=sqlalchemy.func.now())
#     users: Mapped[list[User]] = relationship(
#         secondary=UserRole, back_populates="roles")
